package com.develop.data.loan.option;

import com.develop.data.loan.option.constraint.CodedOption;
import com.develop.data.loan.option.constraint.CommentedOption;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
public enum LoanState implements CodedOption, CommentedOption {

    //枚举类Loan开头，是为了Contract、Installment、Repayment都可以用

    PREVIEW("PREVIEW", "试算"),
    ENCASH_SUCCEED("ENCASH_SUCCEED", "放款在途"),
    ENCASH_FAILED("ENCASH_FAILED", "放款成功"),
    ENCASH_TRANSIT("ENCASH_TRANSIT", "放款失败"),
    NORMAL("NORMAL","正常"),
    OVERDUE("OVERDUE","逾期"),
    NON_ACCRUED("NON_ACCRUED","非应计"),
    CANCEL("CANCEL","核销");


    @Getter
    private String code;
    @Getter @Setter
    private String comment;

}
